﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace AssemblyViewer
{
    public class ViewModelBase : INotifyPropertyChanged
    {
        #region Event
        /// <summary>
        /// PropertyChangedEvent
        /// </summary>
        public event PropertyChangedEventHandler PropertyChanged;
        #endregion

        /// <summary>
        /// ProperChanged's Method
        /// </summary>
        /// <param name="sender">Property's owner</param>
        /// <param name="propertyName">Property Name</param>
        public void OnPropertyChanged(string propertyName)
        {
            if (this.PropertyChanged != null)
            {
                this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    }
}
